package com.frxuexi.park2212.my

import androidx.lifecycle.MutableLiveData
import com.frxuexi.lib_base.base.BaseViewModel
import com.frxuexi.lib_base.entity.ParkBeanItem
import com.frxuexi.lib_base.entity.PayBeanItem
import com.frxuexi.lib_base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class MyViewModel @Inject constructor(val apiService: ApiService):BaseViewModel(){
    val parkById = MutableLiveData<ParkBeanItem>()

    fun getParkById(uid:Int){
        httpRequest({apiService.getParkByUid(uid)},parkById::postValue)
    }
}